feat(router): pass fields to indicate if the customer address details to be connector from wallets #5210
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Type of Change
Description
Currently there are two fields which indicate if the customer address needs to be collected form the wallets like apple pay or google pay. And those fields are
collect_shipping_details_from_wallet_connector
andcollect_billing_details_from_wallet_connector
, and the same fields needs to be sent to sdk so that they can make the required decisions based on it.Additional Changes
Motivation and Context
How did you test it?
-> Create stripe mca
-> For the specific business profile set the below fields as ture
-> Create a payment with confirm false
-> Make session call
Both shipping and billing will be false in the apple pay and google pay session token
-> Do merchant payment method list
-> Now set the fields in the business profile with the below curl
-> Create a payment with confirm false
-> Do a session call and the apple pay and the google pay should contain the billing and shipping fields
-> Now make payment methods list
Checklist
cargo +nightly fmt --all
cargo clippy